#include "StdAfx.h"
#include "HudMaterial.h"

HudMaterial * HudMaterial::ms_pInstance;

void HudMaterial::Init ()
{
	// Shader
	m_shader.Init("../Resources/Shaders/HudVS.vs", "../Resources/Shaders/HudFS.fs");

	// Model
	float vertices[] = 
	{
		0.0f, 0.0f, 0.0f,
		0.0f, 0.0f,
		1.0f, 1.0f, 0.0f,
		1.0f, 1.0f,
		0.0f, 1.0f, 0.0f,
		0.0f, 1.0f,
		1.0f, 1.0f, 0.0f,
		1.0f, 1.0f,
		0.0f, 0.0f, 0.0f,
		0.0f, 0.0f,
		1.0f, 0.0f, 0.0f,
		1.0f, 0.0f
	};

	glGenBuffers(1, &m_boId);
	glBindBuffer(GL_ARRAY_BUFFER, m_boId);
	glBufferData(GL_ARRAY_BUFFER, sizeof(vertices), vertices, GL_STATIC_DRAW);
	glBindBuffer(GL_ARRAY_BUFFER, 0);
}
